(function callee(){
    var FORM_WIDTH = 780;
    view.RentalForm = Ext.extend(Object, {
        constructor: function(){
            this.oAboutYourself = new view.AboutYourself();
            var oAboutYourselfBacking = this.oAboutYourself.m_oBackingObject;
            
            this.oResidentialHistory = new view.ResidentialHistory();
            var oResidentialHistoryBacking = this.oResidentialHistory.m_oBackingObject;
            this.m_oBackingObject = new Ext.FormPanel({
                border: false,
                width: FORM_WIDTH,
                buttons: [{
                    text: 'Save as Draft',
					handler: function(){
						console.log("save draft clicked");
					}
                }, {
					text: 'Save as Pdf'
				},{
                    text: 'Email'
                }]
            
            });
            this.m_oBackingObject.add(oAboutYourselfBacking);
            this.m_oBackingObject.add(oResidentialHistoryBacking);
        }
    });
    
    
})();
